Philippe Waroquiers <philippe.waroquiers at eurocontrol.int>
authorGlenn Morris <rgm@gnu.org>
Wed, 15 Aug 2007 03:19:29 +0000 (03:19 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 15 Aug 2007 03:19:29 +0000 (03:19 +0000)
(tty_default_color_capabilities): Explicitly initialize static
variables in file scope, to avoid HPUX compiler problem.

src/term.c

index 798fc37ca46403129ed3f87dd8d2eada441ed50f..624e1c82eddd6316246c07a98dda5f1eb94e1c86 100644 (file)
@@ -2238,15 +2238,19 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells,
 
 #ifndef WINDOWSNT
 
+static int default_max_colors = 0;
+static int default_max_pairs = 0;
+static int default_no_color_video = 0;
+static char *default_orig_pair = NULL;
+static char *default_set_foreground = NULL;
+static char *default_set_background = NULL;
+
 /* Save or restore the default color-related capabilities of this
    terminal.  */
 static void
 tty_default_color_capabilities (save)
      int save;
 {
-  static char
-    *default_orig_pair, *default_set_foreground, *default_set_background;
-  static int default_max_colors, default_max_pairs, default_no_color_video;
 
   if (save)
     {